Problem Note 58304: The IS8601_CONVERT call routine might compute an incorrect value
The IS8601_CONVERT call routine converts an ISO 8601 interval to datetime and duration values, or converts datetime and duration values to an ISO 8601 interval. The IS8601_CONVERT call routine might generate an incorrect value. One example of a call that produces an incorrect result is shown below:
call is8601_convert('intvl','start','PT5H/2015-12-25T10:00:00',start);
The four arguments to the call routine above indicate the following:
- an interval is provided
- the start value is requested
- the interval of 5 hours and the ending datetime value are provided
- the variable Start is requested
The result should be 25DEC2015:05:00, since the ending time should be 5 hours after the starting time. The incorrect time of 24DEC2015:19:00 is computed because the ending hour offset of 10:00:00 is subtracted, as well as the duration offset of 05:00:00 when computing the start time. Only the duration time should be subtracted.
There is currently no circumvention for this problem.
Operating System and Release Information
| SAS System | Base SAS | z/OS | 9.2 TS1M0 | 9.4 TS1M4 |
| z/OS 64-bit | 9.2 TS1M0 | 9.4 TS1M4 |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
| Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
| Microsoft® Windows® for x64 | 9.2 TS1M0 | 9.4 TS1M4 |
| Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
| Microsoft Windows XP Professional | 9.2 TS1M0 | |
| Windows Vista | 9.2 TS1M0 | |
| Windows Vista for x64 | 9.2 TS1M0 | |
| 64-bit Enabled AIX | 9.2 TS1M0 | 9.4 TS1M4 |
| 64-bit Enabled HP-UX | 9.2 TS1M0 | 9.4 TS1M4 |
| 64-bit Enabled Solaris | 9.2 TS1M0 | 9.4 TS1M4 |
| HP-UX IPF | 9.2 TS1M0 | 9.4 TS1M4 |
| Linux | 9.2 TS1M0 | 9.4 TS1M4 |
| Linux for x64 | 9.2 TS1M0 | 9.4 TS1M4 |
| OpenVMS on HP Integrity | 9.2 TS1M0 | 9.4 TS1M4 |
| Solaris for x64 | 9.2 TS1M0 | 9.4 TS1M4 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Problem Note |
| Priority: | medium |
| Topic: | SAS Reference ==> CALL routines ==> IS8601_CONVERT
|
| Date Modified: | 2016-06-03 11:27:11 |
| Date Created: | 2016-05-31 11:27:16 |